package com.lsb.blog.controller;

import com.lsb.blog.pojo.SysUser;
import com.lsb.blog.response.Result;
import com.lsb.blog.utils.UserThreadLocal;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：liusibo
 * @description：TODO
 * @date ：2021/8/4 12:54
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @RequestMapping
    public Result test(){
        SysUser sysUser = UserThreadLocal.get();
        System.out.println(sysUser);
        return Result.ok();
    }
}
